home *** CD-ROM | disk | FTP | other *** search
/ Sound Library 2000 / Sound Library 2000 - Wayzata Technology (1995).iso / pc / other / sound_li.bra / stack_-1.xml < prev   
Extensible Markup Language  |  1995-10-04  |  10KB  |  34 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
  3. <stack>
  4.     <name>in.bra</name>
  5.     <id>-1</id>
  6.     <cardCount>13</cardCount>
  7.     <cardID>2944</cardID>
  8.     <listID>2531</listID>
  9.     <cantModify><false /></cantModify>
  10.     <cantDelete><false /></cantDelete>
  11.     <cantAbort><false /></cantAbort>
  12.     <cardSize>
  13.         <width>512</width>
  14.         <height>342</height>
  15.     </cardSize>
  16.     <script>---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Sound Library 1.01-- Saturn Systems-- 101 W. 2nd St., #206-- Duluth, MN 55802-- (218) 726-1166---- This was written for Wayzata Technology Inc. ┬⌐ 1991-- All right Reserved-- 11/18/91--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------on StartupAddColor install,8AddColor enableend Startup------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------on closeStackAddColor remove-- Called upon HOME or OPEN STACKreset menuBar                                       -- Don't display CATEGORIES menupass closeStackend closeStack------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------on openStackAddColor installcatMenu                                             -- Display CATEGORIES menupass openStackend openStack------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------on suspendStack                                       -- Called upon HELPreset menuBar                                       -- Don't display CATEGORIES menuend suspendStack------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------on resumeStack                                        -- Called upon return from HELPcatMenu                                             -- Re-display CATEGORIES menuend resumeStack------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------on doMenu item, menu-- Need to trap for QUIT HYPERCARD to remove the credits and logo PICTs.global quittingif item is "Quit HyperCard" thenput true into quittingend ifpass doMenuend doMenu------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------on catMenu-- Display CATEGORIES menuif there is a menu "Categories" then exit catMenucreate menu "Categories"put catMenuItems() into menu "Categories"set the menuMessage of menuItem "Animals" of Menu "categories" to go to Card "Animal Sounds"set the menuMessage of menuItem "Short Misc" of Menu "categories" to go to Card "Beep Sounds"set the menuMessage of menuItem "Household" of Menu "categories" to go to Card "Household Sounds"set the menuMessage of menuItem "Special Effects" of Menu "categories" to go to Card "Miscellaneous Special Effects"set the menuMessage of menuItem "Instruments" of Menu "categories" to go to Card "Musical Instruments"set the menuMessage of menuItem "Musical Intros" of Menu "categories" to go to Card "Musical Intros"set the menuMessage of menuItem "People" of Menu "categories" to go to Card "People Sounds"set the menuMessage of menuItem "Transportation" of Menu "categories" to go to Card "Planes, Trains, and Automobiles"set the menuMessage of menuItem "Phrases" of Menu "categories" to go to Card "Short Phrases"set the menuMessage of menuItem "Nature" of Menu "categories" to go to Card "Sounds of Nature"end catMenu------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------function catMenuItemsreturn  ┬¼"Animals" & return & ┬¼"Short Misc" & return & ┬¼"Household" & return & ┬¼"Special Effects" & return & ┬¼"Instruments" & return & ┬¼"Musical Intros" & return & ┬¼"People" & return & ┬¼"Transportation" & return & ┬¼"Phrases" & return & ┬¼"Nature" & returnend catMenuItems------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------on OsErr err-- For displaying error messages from operating system error codes returned by CopyFile()-- Translate the most common onesif err > 0 then -- XFCN conventionput "Parameter error with function" into errstrelse if err is -59 thenput "Problem during rename" into errstrelse if err is -54 thenput "Attempt to open locked file for writing" into errstrelse if err is -46 thenput "Volume locked by software" into errstrelse if err is -45 thenput "File locked" into errstrelse if err is -44 thenput "Volume locked by hardware" into errstrelse if err is -43 thenput "File not found" into errstrelse if err is -37 thenput "Bad volume or file name" into errstrelse if err is -36 thenput "I/O error" into errstrelse if err is -35 thenput "No such volume" into errstrelse if err is -34 thenput "Disk is full" into errstrelse if err is -49 thenput "File already open for writing" into errstrelseput "Failed with error" && err into errstrend ifanswer errstr with "OK"end OsErr------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------on findGlobalString-- Find string within global scope of the stack.  When the string is found, the card in which-- it resides is opened, then a dialog is presented to find again.  The domain for this search-- is the field "Displayed_Sounds" in all categories.  The search string is retained as a-- global variable; it will be presented as the default for the next FIND.global findStringAsk "Please enter a word/phrase to find: " with findStringif the result is not "Cancel" thenput it into findStringPut "Find Next" into ansFindAgainrepeat while ansFindAgain is "Find Next"if findString is not Empty thenfind string findString in BG field "Displayed_Sounds"if the result is "not found" thenAnswer  "'"&findString&"' was not Found" With "OK"put it into ansFindAgain  -- OK forces Failure of Loopelseput the foundLine into myfoundLineput word 2 of myfoundLine into lineNumput item 1 of line lineNum of field Displayed_Sounds into foundNameAnswer  "Found '"&foundName&"'."&return&&return&"Find '"&findString&"' Again?" With┬¼"Done" or "Find Next"put it into ansFindAgain   -- Done forces Failure of Loopend ifelseput "null" into ansFindAgainend ifend repeatend ifend findGlobalString------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------on openCardSend colorMe to this cardpass openCardend openCardon closeCardlock screenpass closeCardend closeCardon colorMeAddColor colorCard,stamp,0end colorMe</script>
  17.     <background id="2733" file="background_2733.xml" name="Intro&Menu" />
  18.     <background id="4419" file="background_4419.xml" name="Main menu BG" />
  19.     <background id="5585" file="background_5585.xml" name="background" />
  20.     <card id="2944" file="card_2944.xml" marked="false" name="Intro" owner="2733" />
  21.     <card id="4933" file="card_4933.xml" marked="false" name="Credits" owner="2733" />
  22.     <card id="4643" file="card_4643.xml" marked="false" name="MainMenu" owner="4419" />
  23.     <card id="6389" file="card_6389.xml" marked="false" name="Animal Sounds" owner="5585" />
  24.     <card id="5685" file="card_5685.xml" marked="false" name="Beep Sounds" owner="5585" />
  25.     <card id="6508" file="card_6508.xml" marked="false" name="Household Sounds" owner="5585" />
  26.     <card id="6832" file="card_6832.xml" marked="false" name="Miscellaneous Special Effects" owner="5585" />
  27.     <card id="7087" file="card_7087.xml" marked="false" name="Musical Instruments" owner="5585" />
  28.     <card id="7210" file="card_7210.xml" marked="false" name="Musical Intros" owner="5585" />
  29.     <card id="7562" file="card_7562.xml" marked="false" name="People Sounds" owner="5585" />
  30.     <card id="7687" file="card_7687.xml" marked="false" name="Planes, Trains, and Automobiles" owner="5585" />
  31.     <card id="8453" file="card_8453.xml" marked="false" name="Short Phrases" owner="5585" />
  32.     <card id="8341" file="card_8341.xml" marked="true" name="Sounds of Nature" owner="5585" />
  33. </stack>
  34.